package com.ruoyi.djb.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 交易记录对象 djb_trade
 * 
 * @author xxd
 * @date 2025-03-04
 */
public class DjbTrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 小区ID */
    @Excel(name = "小区ID")
    private Integer districtId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 交易名称 */
    @Excel(name = "交易名称")
    private String name;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 方向 */
    @Excel(name = "方向")
    private String direct;

    /** 消费、充值 */
    @Excel(name = "消费、充值")
    private String tradeType;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tradeTime;

    /** 交易金额-分 */
    @Excel(name = "交易金额-分")
    private Integer money;

    /** 余额 */
    @Excel(name = "余额")
    private Integer balance;

    /** 第三方订单号 */
    @Excel(name = "第三方订单号")
    private String orderId;

    /** 微信、支付宝 */
    @Excel(name = "微信、支付宝")
    private String payType;

    /** 充值ID */
    @Excel(name = "充值ID")
    private Integer chargeId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setDistrictId(Integer districtId) 
    {
        this.districtId = districtId;
    }

    public Integer getDistrictId() 
    {
        return districtId;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setDirect(String direct) 
    {
        this.direct = direct;
    }

    public String getDirect() 
    {
        return direct;
    }
    public void setTradeType(String tradeType) 
    {
        this.tradeType = tradeType;
    }

    public String getTradeType() 
    {
        return tradeType;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setTradeTime(Date tradeTime) 
    {
        this.tradeTime = tradeTime;
    }

    public Date getTradeTime() 
    {
        return tradeTime;
    }
    public void setMoney(Integer money) 
    {
        this.money = money;
    }

    public Integer getMoney() 
    {
        return money;
    }
    public void setBalance(Integer balance) 
    {
        this.balance = balance;
    }

    public Integer getBalance() 
    {
        return balance;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setPayType(String payType) 
    {
        this.payType = payType;
    }

    public String getPayType() 
    {
        return payType;
    }
    public void setChargeId(Integer chargeId) 
    {
        this.chargeId = chargeId;
    }

    public Integer getChargeId() 
    {
        return chargeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("districtId", getDistrictId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("status", getStatus())
            .append("direct", getDirect())
            .append("tradeType", getTradeType())
            .append("createTime", getCreateTime())
            .append("payTime", getPayTime())
            .append("tradeTime", getTradeTime())
            .append("money", getMoney())
            .append("balance", getBalance())
            .append("orderId", getOrderId())
            .append("payType", getPayType())
            .append("chargeId", getChargeId())
            .toString();
    }
}
